package com.cg.design.depthdesign.abstractfactory.factories;

import com.cg.design.depthdesign.abstractfactory.buttons.Button;
import com.cg.design.depthdesign.abstractfactory.buttons.WindowsButton;
import com.cg.design.depthdesign.abstractfactory.checkbes.Checkbox;
import com.cg.design.depthdesign.abstractfactory.checkbes.WindowsCheckbox;

/**
 * Windows具体工厂
 * <p>
 * 每个具体工厂都是基础工厂的延伸，负责创造单一品种的产品。
 *
 * @program: LeetCode->WindowsFactory
 * @author: cg
 * @create: 2022-04-07 09:35
 **/
public class WindowsFactory implements GUIFactory {

    @Override
    public Button createButton() {
        return new WindowsButton();
    }

    @Override
    public Checkbox createCheckbox() {
        return new WindowsCheckbox();
    }
}
